In This Topic
Additional guidance for COM/ActiveX
In This Topic
The process is the same as the "normal" GdPicture.NET redistribution with an additional step:
GdPicture.NET.14.dll must be registered by using the Assembly Registration Tool (Regasm.exe).
From the MSDN: "The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class. The class is registered only once, when the assembly is installed. Instances of classes within the assembly cannot be created from COM until they are actually registered."
So to sum-up:
- Copy the required files to the desired location. See the Redistributing GdPicture.NET section.
GdPicture.NET COM/ActiveX edition is compiled with the .NET Framework 4.5.
- Register the GdPicture.NET core dll.
For the step 2, you have 2 options.
- Simply copy the GdPictureComReg.exe tool in the same location as GdPicture.NET library core and start it. This tool will detect the location of the regasm tool on your computer and will perform registration of GdPicture.NET in 32-bit mode and also in 64-bit mode (if the OS is 64-bit, of course). In case an error occurs, the tool will prompt a message box indicating the reason.
We offer the application source code of the GdPictureComReg.exe on demand to licensed user. It is a very simple VB.NET application.
- Perform the registration by invoking the regasm tool by yourself. On command line or through an installer GUI for example. Basically the command is:
In order to update GdPicture.NET COM/ActiveX edition please follow these steps:
- Unregister the prior version using the regasm.exe /u following the above explanation.
- Replace the existing deploy files with the required ones from the new version.
- Register the new files using the regasm.exe as described above.
See Also